The SimpleMenu Component > FSimpleMenu.replaceItemAt()

 

FSimpleMenu.replaceItemAt()

Availability

Flash Player 6.

Usage

sm_instance.replaceItemAt (index, label)

Parameters

index - An integer specifying an item on the SimpleMenu.
label - A string specifying the label of the new item.

Returns

Nothing.

Description

Replaces an item on the SimpleMenu with a new button or separator bar.

Example

The following code replaces the third item with a separator bar:

sm.replaceItemAt(2, "fsm_bar");

The following code replaces the fifth item with a "Contact" button:

sm.replaceItemAt(4, "Contact");

See also

FSimpleMenu.removeItemAt
FSimpleMenu.addItemAt